package com.project.dao;

import com.project.entity.SchoolManagerInfo;

import java.util.List;

public interface SchoolManagerInfoMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SchoolManagerInfo record);

    int insertSelective(SchoolManagerInfo record);

    SchoolManagerInfo selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SchoolManagerInfo record);

    int updateByPrimaryKey(SchoolManagerInfo record);

    /**
     * author: WheelChen
     * date: 2017/7/25
     * function: 根据userId查找学院管理员信息
     *
     * @param userId
     * @return
     */
    SchoolManagerInfo selectByUserId(Integer userId);

    /**
     * author: WheelChen
     * date: 2017/9/18
     * function: 根据学院id查找学院管理员
     *
     * @param schoolId
     * @return
     */
    SchoolManagerInfo selectOneBySchoolId(Integer schoolId);
}